.class public final Lnet/tsapps/topdeals/a/o;
.super Landroid/widget/BaseExpandableListAdapter;


# instance fields
.field public a:Lnet/tsapps/topdeals/e/c;

.field private b:Landroid/view/LayoutInflater;


# direct methods
.method public constructor <init>(Landroid/view/LayoutInflater;Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseExpandableListAdapter;-><init>()V

    new-instance v0, Lnet/tsapps/topdeals/e/c;

    invoke-direct {v0, p2}, Lnet/tsapps/topdeals/e/c;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    iput-object p1, p0, Lnet/tsapps/topdeals/a/o;->b:Landroid/view/LayoutInflater;

    return-void
.end method

.method private a(I)I
    .locals 6

    const/4 v0, 0x0

    invoke-virtual {p0, p1}, Lnet/tsapps/topdeals/a/o;->getChildrenCount(I)I

    move-result v2

    move v1, v0

    :goto_0
    if-lt v1, v2, :cond_0

    return v0

    :cond_0
    iget-object v3, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    invoke-virtual {p0, p1, v1}, Lnet/tsapps/topdeals/a/o;->getChildId(II)J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Lnet/tsapps/topdeals/e/c;->a(J)Z

    move-result v3

    if-eqz v3, :cond_1

    add-int/lit8 v0, v0, 0x1

    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method


# virtual methods
.method public final a(II)Z
    .locals 3

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    invoke-virtual {p0, p1, p2}, Lnet/tsapps/topdeals/a/o;->getChildId(II)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lnet/tsapps/topdeals/e/c;->a(J)Z

    move-result v0

    return v0
.end method

.method public final getChild(II)Ljava/lang/Object;
    .locals 7

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    invoke-virtual {p0, p1, p2}, Lnet/tsapps/topdeals/a/o;->getChildId(II)J

    move-result-wide v1

    iget-object v0, v0, Lnet/tsapps/topdeals/e/c;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_1
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/k;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/k;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_2
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/f;

    iget-wide v5, v0, Lnet/tsapps/topdeals/objects/f;->b:J

    cmp-long v5, v5, v1

    if-nez v5, :cond_2

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/f;->a:Ljava/lang/String;

    goto :goto_0
.end method

.method public final getChildId(II)J
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    iget-object v0, v0, Lnet/tsapps/topdeals/e/c;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/k;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/k;->a:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/f;

    iget-wide v0, v0, Lnet/tsapps/topdeals/objects/f;->b:J

    return-wide v0
.end method

.method public final getChildView(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    if-nez p4, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->b:Landroid/view/LayoutInflater;

    const v1, 0x7f03000c

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    move-object p4, v0

    :cond_0
    const v0, 0x7f050006

    invoke-virtual {p4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0, p1, p2}, Lnet/tsapps/topdeals/a/o;->getChild(II)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f05002a

    invoke-virtual {p4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {p0, p1, p2}, Lnet/tsapps/topdeals/a/o;->a(II)Z

    move-result v1

    if-eqz v1, :cond_1

    const v1, 0x7f020039

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_0
    new-instance v0, Lnet/tsapps/topdeals/a/l;

    invoke-direct {v0, p0, p1, p2}, Lnet/tsapps/topdeals/a/l;-><init>(Lnet/tsapps/topdeals/a/o;II)V

    invoke-virtual {p4, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p4

    :cond_1
    const v1, 0x7f020038

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method

.method public final getChildrenCount(I)I
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    iget-object v0, v0, Lnet/tsapps/topdeals/e/c;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/k;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/k;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public final getGroup(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    iget-object v0, v0, Lnet/tsapps/topdeals/e/c;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/k;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/k;->b:Ljava/lang/String;

    return-object v0
.end method

.method public final getGroupCount()I
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->a:Lnet/tsapps/topdeals/e/c;

    iget-object v0, v0, Lnet/tsapps/topdeals/e/c;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public final getGroupId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public final getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    const/4 v3, 0x0

    if-nez p3, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/a/o;->b:Landroid/view/LayoutInflater;

    const v1, 0x7f03000d

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    move-object v1, v0

    :goto_0
    move-object v0, v1

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    if-eqz p2, :cond_0

    const v2, 0x7f02003b

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_1
    move-object v0, v1

    check-cast v0, Landroid/view/ViewGroup;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0, p1}, Lnet/tsapps/topdeals/a/o;->getGroup(I)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    move-object v0, v1

    check-cast v0, Landroid/view/ViewGroup;

    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {p0, p1}, Lnet/tsapps/topdeals/a/o;->a(I)I

    move-result v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p0, p1}, Lnet/tsapps/topdeals/a/o;->getChildrenCount(I)I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object v1

    :cond_0
    const v2, 0x7f02003a

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_1

    :cond_1
    move-object v1, p3

    goto :goto_0
.end method

.method public final hasStableIds()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public final isChildSelectable(II)Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method
